﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.UIElements;


// 作业1的提示
public class GroupMemberContorller : MonoBehaviour
{
    // Start is called before the first frame update
    public GameObject grouppanel;
    public GameObject help;
    public GameObject grouptext;
    public static Vector3 vec3, pos;
    void Start()
    {
        grouppanel = GameObject.Find("GroupPanel");
        grouppanel.GetComponent<CanvasGroup>().alpha=0;
        help = GameObject.Find("Help");
        help.GetComponent<CanvasGroup>().alpha = 0;
        grouptext = GameObject.Find("Grouptext");
        grouptext.GetComponent<CanvasGroup>().alpha = 1;

    }
   
    void Update()
    {
        // 输入事件返回的是个布尔值
        if (Input.GetKey(KeyCode.F2))
        {
            grouppanel.GetComponent<CanvasGroup>().alpha = 1;
        }

       
    }
   
    public void Click()
    {

        grouppanel.GetComponent<CanvasGroup>().alpha = 0;
        grouptext.GetComponent<CanvasGroup>().alpha = 1;
        help.GetComponent<CanvasGroup>().alpha = 0;
    }

    public void Click2()
    {

        help.GetComponent<CanvasGroup>().alpha = 1;
        grouptext.GetComponent<CanvasGroup>().alpha = 0;
    }



}


